<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模块化设计export 和import</title>
</head>
<body>

<p></p>
<script type="module">
    // as取别名、
    import {myName as m} from "./class4-18.js";
    console.log(m);//Tom
</script>
</body>
</html>
